home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cmdline.lha / cmdline / Makefile < prev    next >
Makefile  |  1992-08-03  |  1KB  |  50 lines

  1. ##########################################################################
  2. ## ^FILE: Makefile - make file for the CmdLine product
  3. ##
  4. ## ^DESCRIPTION:
  5. ##    This is the makefile that is used to build and install the CmdLine
  6. ##    product.
  7. ##
  8. ## ^HISTORY:
  9. ##    04/28/92    Brad Appleton    <brad@ssd.csd.harris.com>    Created
  10. ###^^#####################################################################
  11.  
  12. include Config.mk
  13.  
  14. SUBDIRS = src doc
  15. SRCDIRS = src
  16. DOCDIRS = doc
  17.  
  18. ###
  19. # target dependencies
  20. ###
  21. help:
  22.     @$(ECHO) "Usage: make <target>"
  23.     @$(ECHO) ""
  24.     @$(ECHO) "where <target> is one of the following:"
  25.     @$(ECHO) ""
  26.     @$(ECHO) "    all        -- build (but do not install) the product"
  27.     @$(ECHO) "    install    -- install the product"
  28.     @$(ECHO) "    library    -- build the cmdline library"
  29.     @$(ECHO) "    program    -- build the cmdparse program"
  30.     @$(ECHO) "    docs       -- build the documentation"
  31.     @$(ECHO) "    clean      -- remove all intermediate files"
  32.     @$(ECHO) "    clobber    -- remove all generated files"
  33.     @$(ECHO) ""
  34.  
  35. all install clean clobber:
  36.     for i in $(SUBDIRS) ; do \
  37.         ( $(CHDIR) $$i ; $(BUILD) $@ ) ; \
  38.     done
  39.  
  40. library program:
  41.     for i in $(SRCDIRS) ; do \
  42.         ( $(CHDIR) $$i ; $(BUILD) $@ ) ; \
  43.     done
  44.  
  45. docs:
  46.     for i in $(DOCDIRS) ; do \
  47.         ( $(CHDIR) $$i ; $(BUILD) all ) ; \
  48.     done
  49.  
  50.